package cn.lls.req.emp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 分页查询本公司公告请求类
 *
 * @ClassName ConditionSearchAnnoReq
 * @Author 划水艺术家
 * @Date 2022/12/19 10:50
 * @Version 1.0
 **/

@Data
public class ConditionSearchAnnoReq implements Serializable {

    private static final Long serialVersionUID = 1L;

    @ApiModelProperty("当前页数，从 1 开始")
    @NotNull(message = "当前页数未指定")
    @Min(value = 1, message = "页码最小为1")
    private Integer currentPage;

    @ApiModelProperty("一页所含信息条数")
    @NotNull(message = "一页信息条数未指定")
    private Integer pageSize;


    /**
     * 公司的Id，外键
     */
    @ApiModelProperty("公司的Id，外键")
    @NotNull(message = "必须指定公司Id")
    private Long companyId;


    // 关键词
    private String key;


    private Date createTime;

}
